package cn.sciento.transfer.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.service.Tag;
import springfox.documentation.spring.web.plugins.Docket;

@Configuration
public class SwaggerApiConfig {
  public static final String INIT_SQL_PROCESS = "init Sql Process";
  
  public static final String INIT_DB_PROCESS = "init Database Process";
  
  public static final String INIT_TENANT_PROCESS = "init Tenant Process";
  
  public static final String CONS_DB_CONFIG = "Consumer Db Config";
  
  public static final String CONS_TENANT_CONFIG = "Consumer Tenant Config";
  
  public static final String PRODUCER_CONFIG = "Producer  Config";
  
  public static final String PRODUCER_CONS_INIT = "Producer Cons Init";
  
  public static final String INIT_SQL_PROCESS_SITE = "init Sql Process (Site Level)";
  
  public static final String INIT_DB_PROCESS_SITE = "init Database Process (Site Level)";
  
  public static final String INIT_TENANT_PROCESS_SITE = "init Tenant Process (Site Level)";
  
  public static final String CONS_DB_CONFIG_SITE = "Consumer Db Config (Site Level)";
  
  public static final String CONS_TENANT_CONFIG_SITE = "Consumer Tenant Config (Site Level)";
  
  public static final String PRODUCER_CONFIG_SITE = "Producer  Config (Site Level)";
  
  public static final String PRODUCER_CONS_INIT_SITE = "Producer Cons Init (Site Level)";
  
  @Autowired
  public SwaggerApiConfig(Docket docket) {
    docket.tags(new Tag("init Sql Process", "数据初始化处理"), new Tag[] { 
          new Tag("init Database Process", "初始化DB处理"), new Tag("init Tenant Process", "初始化租户处理"), new Tag("Consumer Db Config", "数据消息消费者DB配置"), new Tag("Consumer Tenant Config", "数据消息消费者Tenant配置"), new Tag("Producer  Config", "数据消息生产配置"), new Tag("Producer Cons Init", "数据初始化"), new Tag("init Sql Process (Site Level)", "数据初始化处理 (平台级)"), new Tag("init Database Process (Site Level)", "初始化DB处理 (平台级)"), new Tag("init Tenant Process (Site Level)", "初始化租户处理 (平台级)"), new Tag("Consumer Db Config (Site Level)", "数据消息消费者DB配置 (平台级)"), 
          new Tag("Consumer Tenant Config (Site Level)", "数据消息消费者Tenant配置 (平台级)"), new Tag("Producer  Config (Site Level)", "数据消息生产配置 (平台级)"), new Tag("Producer Cons Init (Site Level)", "数据初始化 (平台级)") });
  }
}
